<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
	<head>
		<title><?php echo ($system_name); ?></title>
		<meta charset="UTF-8">
		<meta name="keywords" content="">
		<meta name="description" content="">
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<!-- intoHead  -->
		<link rel="stylesheet" type="text/css" href="<?php echo C('BOOTSTRAP');?>css/bootstrap.min.css?v=<?php echo C('VERSION');?>" />
		<link rel="stylesheet" type="text/css" href="<?php echo C('HOME_CSS');?>console.css?v=<?php echo C('VERSION');?>" />
		<script type="text/javascript" src="<?php echo C('HOME_JS');?>jquery-2.0.3.min.js?v=<?php echo C('VERSION');?>"></script>
		<script type="text/javascript" src="<?php echo C('HOME_JS');?>index.js?v=<?php echo C('VERSION');?>"></script>
		<script language="JavaScript" src="<?php echo C('LAYERUI');?>layui.js?v=<?php echo C('VERSION');?>"></script>
		<script language="JavaScript" src="<?php echo C('HOME_JS');?>function.js?v=<?php echo C('VERSION');?>"></script>
		<script>
		layui.use(['layer','form'], function(){
			var layer=layui.layer;
			var form =layui.form();
		});
		</script>
		<link rel="stylesheet" type="text/css" href="<?php echo C('HOME_CSS');?>iframe.css?v=<?php echo C('VERSION');?>" />
		<script>
			var city_url = "<?php echo C('HOME_JS');?>city.min.js";
		</script>
		<script type="text/javascript" src="<?php echo C('HOME_JS');?>jquery.cityselect.js"></script>
		<script type="text/javascript" src="<?php echo C('UPLOAD');?>jquery.form.js"></script>

	</head>
<style type="text/css">
	table{width:100%;}
	table td,table th{padding:6px 0px 6px 6px;background:#FFFFFF;}
	table th{text-align:center;line-height:30px;margin:5px;border-bottom:10px solid #f5f5f5;border-right:1px solid #DEDEDE;color:#3e3e3e;}
	table td{text-align:center;border-bottom:2px solid #DEDEDE;line-height:25px;}
	.spacess{color:#ccc;float:right;border-right:1px solid #DEDEDE;height:35px;}
	.opration{text-align: left !important;padding-left:30px;border-right:1px solid #DEDEDE;}
</style>
<body class="iframe-body">

<div style="text-indent:10px;background:#EAEDF1;width:100%;position:fixed;top:0px;height:35px;line-height:35px;">
    <a href="<?php echo U('Index/home');?>" target="right-page" style="color:#5c5c5c;text-decoration:none;">
	    <img style="position:relative;top:-2px;" src="<?php echo C('HOME_IMAGE');?>icon/sy_icon.png" width="15px;">
	    <?php echo (L("_HOME_PAGE")); ?>
    </a>
    &gt;
    <a href="<?php echo U($nav_one['action'],array('nav_id'=>$nav_one['id']));?>" target="right-page" style="color:#5c5c5c;text-decoration:none;">
    	检测数据
    </a>
    &gt;
    <a href="<?php echo U($nav_two['action'],array('nav_id'=>$nav_two['id']));?>" target="right-page" style="text-decoration:none;">
    	<span style="color:#15b6be;">中医慢病预警健康管理检测数据</span>
    </a>
    <span style="float:right;margin-right:10px;cursor:pointer;" onclick="location.reload()"><?php if((LANG_SET) == "zh-cn"): ?>刷新<?php else: ?>refresh<?php endif; ?></span>
	<div style="display: inline-block;float: right;"><input id="search" value="" style="height:25px"/><a id="search_url"><span class="glyphicon glyphicon-search" style="right:30px;cursor:pointer" aria-hidden="true"></span></a></div>
</div>

<style type="text/css">
    table td{text-align:center;border-bottom:2px solid #DEDEDE;line-height:35px;}
    .pad{margin-top:10px;}
</style>
<div class="body" style="background:#f5f5f5;padding-top: 45px;">
    <table style="margin-top:5px;margin-bottom:10px;">
        <tr>
            <th><?php echo (L("USER_NUM")); ?></th>
            <th><?php echo (L("_UPLOAD_TIME")); ?></th>
            <th><?php echo (L("USER_ID")); ?></th>
            <th><?php echo (L("USER_PIC")); ?></th>
            <th><?php echo (L("USER_NAME")); ?></th>
            <th><?php echo (L("USER_NICKNAME")); ?></th>
            <th><?php echo (L("USER_ORGANIZATION")); ?></th>
            <th><?php echo (L("_VIEW_REPORT")); ?></th>
        </tr>
        <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
                <td><?php echo ($vo["id"]); ?><span class="spacess"></span></td>
                <td><?php echo (date('Y-m-d H:i:s',$vo["upload_time"])); ?><span class="spacess"></span></td>
                <td><?php echo ($vo["uid"]); ?></td>
                <td><img class="head_pic" src="<?php echo ($vo["head_pic"]); ?>" width="60px" height="60px"><span class="spacess pad"></span></td>
                <td><?php echo ($vo["name"]); ?><span class="spacess"></span></td>
                <td class="nick pointer" name="<?php echo ($vo["name"]); ?>" phone="<?php echo ($vo["phone"]); ?>" email="<?php echo ($vo["email"]); ?>"><?php echo ((isset($vo["nickname"]) && ($vo["nickname"] !== ""))?($vo["nickname"]):""); ?><span class="spacess"></span></td>
                <td><?php echo ((isset($vo["org_name"]) && ($vo["org_name"] !== ""))?($vo["org_name"]):""); ?><span class="spacess"></span></td>
                <td>
                    <a class="zyjcsj" href="javascript:;" url="<?php echo U('Jcsj/view_zysj',array('uid'=>$vo['uid'],'upload_time'=>$vo['upload_time']));?>"><?php echo (L("_VIEW")); ?></a>
                    <a class="zysjdc" href="<?php echo U("Api/ZyApi/download_jcbg",array('uid'=>$vo['uid'],'upload_time'=>$vo['upload_time']));?>">导出</a>
                </td>
            </tr><?php endforeach; endif; else: echo "" ;endif; ?>
    </table>
    <div class="page"><?php echo ($page); ?></div>
</div>
<script>
  $('table').on('click','.zyjcsj',function(){
      var url =$(this).attr('url');
          parent.layer.open({
              title:'查看中医慢病检测数据',
              type: 2,
              area: ['900px', '500px'],
              fixed: false, //不固定
              maxmin: true,
              shadeClose: true,
              content: url,
              end:function(){
                  location.reload();
              }
          });
  })
</script>
<script>
    $('#search_url').on('click',function(){
	    var $key_word = $('#search').val();
	    var url = "<?php echo U('Jcsj/wswjcsj',array('key_word' => $key_word));?>";
	    window.location.href = url+'?key_word='+$key_word;
    })
    $("#search").keydown(function(){
	  if(event.keyCode == "13"){
		  var $key_word = $('#search').val();
		  var url = "<?php echo U('Jcsj/wswjcsj',array('key_word' => $key_word));?>";
		  window.location.href = url+'?key_word='+$key_word;
	  }
    })
    layui.use(['layer', 'form'], function(){
        $('table').on('mouseover','.nick',function(){
            var name = $(this).attr('name');
            var phone= $(this).attr('phone');
            var email= $(this).attr('email');
            var html = '<div><?php echo (L("USER_NAME")); ?>：'+name+'</div><div><?php echo (L("USER_PHONE")); ?>：'+phone+'</div><div><?php echo (L("USER_EMAIL")); ?>：'+email+'</div>';
            var index=layer.tips(html, $(this),{time:0})
        })
        $('table').on('mouseout','.nick',function(){
            layer.closeAll();
        })
    })
    big_img1();
</script>